package com.hc.main;

//import com.alibaba.fastjson.JSON;
import com.hc.pojo.Student;

/**
 * json对象和java对象互转
 */
public class JsonDemo1 {
    public static void main(String[] args) {
        //java对象转json
//        Student student = new Student("张三", 18);
//        System.out.println(JSON.toJSONString(student));
    }
}
